student_tuples = [
    ('john', 'A', 15),
    ('jane', 'B', 12),
    ('dave', 'C', 10)
]

a = sorted(student_tuples, key=lambda student: student[1], reverse=True)
print(a)